package com.itheima.appumeng.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.itheima.appumeng.R;

/**
 * @author WJQ
 */
public class MainFragment03 extends BaseFragment {

    private View root;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater,
                             @Nullable ViewGroup container,
                             @Nullable Bundle savedInstanceState) {
        if (root == null) {
            root = inflater.inflate(R.layout.main_fragment_03, container, false);
            Button button = (Button) root.findViewById(R.id.btn_01);
            button.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    String str = null;
                    str = str.substring(0);
                }
            });
        }
        return root;
    }

}












